package org.tooyoung.fourone.user.model;


import android.os.Parcel;
import android.os.Parcelable;

import cn.bmob.v3.BmobObject;
import cn.bmob.v3.datatype.BmobFile;

/**
 * Created by Administrator on 2016/11/7.
 */

public class UserImformation extends BmobObject implements Parcelable{
    private String username;
    private String userpassword;
    private String privince;
    private String addressDetail;
    private String phoneNumber;
    private String emailAddress;
    private String sex;
    private String longitude;
    private String latitude;
    private BmobFile pic;

    public UserImformation(){
        super();
    }


    protected UserImformation(Parcel in) {
        username = in.readString();
        userpassword = in.readString();
        privince = in.readString();
        addressDetail = in.readString();
        phoneNumber = in.readString();
        emailAddress = in.readString();
        sex = in.readString();
        longitude = in.readString();
        latitude = in.readString();
    }

    public static final Creator<UserImformation> CREATOR = new Creator<UserImformation>() {
        @Override
        public UserImformation createFromParcel(Parcel in) {
            return new UserImformation(in);
        }

        @Override
        public UserImformation[] newArray(int size) {
            return new UserImformation[size];
        }
    };

    @Override
    public String toString() {
        return "UserImformation{" +
                "username='" + username + '\'' +
                ", userpassword='" + userpassword + '\'' +
                ", privince='" + privince + '\'' +
                ", addressDetail='" + addressDetail + '\'' +
                ", phoneNumber='" + phoneNumber + '\'' +
                ", emailAddress='" + emailAddress + '\'' +
                ", sex='" + sex + '\'' +
                ", longitude='" + longitude + '\'' +
                ", latitude='" + latitude + '\'' +
                ", pic=" + pic +
                '}';
    }

    public BmobFile getPic() {
        return pic;
    }

    public void setPic(BmobFile pic) {
        this.pic = pic;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getLatitude() {

        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getAddressDetail() {
        return addressDetail;
    }

    public void setAddressDetail(String addressDetail) {
        this.addressDetail = addressDetail;
    }

    public String getEmailAddress() {
        return emailAddress;
    }

    public void setEmailAddress(String emailAddress) {
        this.emailAddress = emailAddress;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPrivince() {
        return privince;
    }

    public void setPrivince(String privince) {
        this.privince = privince;
    }

    public String getUserpassword() {
        return userpassword;
    }

    public void setUserpassword(String userpassword) {
        this.userpassword = userpassword;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(username);
        dest.writeString(userpassword);
        dest.writeString(privince);
        dest.writeString(addressDetail);
        dest.writeString(phoneNumber);
        dest.writeString(emailAddress);
        dest.writeString(sex);
        dest.writeString(longitude);
        dest.writeString(latitude);
    }
}
